package com.hotel.utils;

/**
 * @author 夏智力
 * @FileName RedisKeyUtil
 * @date 2021/6/21 22:09
 * @Software: IntelliJ IDEA
 */
public class RedisKeyUtil {

    private static final String SPLIT = ":";
    private static final String PREFIX_KAPTCHA = "kaptcha";
    private static final String PREFIX_ALLOWANCE = "allowance";

    //  登录验证码
    public static String getKaptchaKey(String owner) {
        return PREFIX_KAPTCHA + SPLIT + owner;
    }

    // 房间余量
    public static String getAllowanceKey(String year,String mon, String day){
        return PREFIX_ALLOWANCE + SPLIT + year + SPLIT + mon + SPLIT + day ;
    }


}
